home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / hobby / ast44src.zip / CHARTS0.C < prev    next >
C/C++ Source or Header  |  1995-02-11  |  45KB  |  1,143 lines

  1. /*
  2. ** Astrolog (Version 4.40) File: charts0.c
  3. **
  4. ** IMPORTANT NOTICE: The graphics database and chart display routines
  5. ** used in this program are Copyright (C) 1991-1995 by Walter D. Pullen
  6. ** (astara@u.washington.edu). Permission is granted to freely use and
  7. ** distribute these routines provided one doesn't sell, restrict, or
  8. ** profit from them in any way. Modification is allowed provided these
  9. ** notices remain with any altered or edited versions of the program.
  10. **
  11. ** The main planetary calculation routines used in this program have
  12. ** been Copyrighted and the core of this program is basically a
  13. ** conversion to C of the routines created by James Neely as listed in
  14. ** Michael Erlewine's 'Manual of Computer Programming for Astrologers',
  15. ** available from Matrix Software. The copyright gives us permission to
  16. ** use the routines for personal use but not to sell them or profit from
  17. ** them in any way.
  18. **
  19. ** The PostScript code within the core graphics routines are programmed
  20. ** and Copyright (C) 1992-1993 by Brian D. Willoughby
  21. ** (brianw@sounds.wa.com). Conditions are identical to those above.
  22. **
  23. ** The extended accurate ephemeris databases and formulas are from the
  24. ** calculation routines in the program "Placalc" and are programmed and
  25. ** Copyright (C) 1989,1991,1993 by Astrodienst AG and Alois Treindl
  26. ** (alois@azur.ch). The use of that source code is subject to
  27. ** regulations made by Astrodienst Zurich, and the code is not in the
  28. ** public domain. This copyright notice must not be changed or removed
  29. ** by any user of this program.
  30. **
  31. ** Initial programming 8/28,30, 9/10,13,16,20,23, 10/3,6,7, 11/7,10,21/1991.
  32. ** X Window graphics initially programmed 10/23-29/1991.
  33. ** PostScript graphics initially programmed 11/29-30/1992.
  34. ** Last code change made 1/29/1995.
  35. */
  36.  
  37. #include "astrolog.h"
  38.  
  39.  
  40. /*
  41. ******************************************************************************
  42. ** Table Display Routines.
  43. ******************************************************************************
  44. */
  45.  
  46. /* A subprocedure of the credit displayed below, this prints out one line */
  47. /* of credit information on the screen. Given a string, it's displayed    */
  48. /* centered with left and right borders around it, in the given color.    */
  49.  
  50. void PrintW(sz, col)
  51. char *sz;
  52. int col;
  53. {
  54.   int i;
  55.  
  56.   if (!sz) {
  57.  
  58.     /* Null string means print the top, bottom, or a separator row. */
  59.  
  60.     if (col < 0)
  61.       AnsiColor(kRed);
  62.     PrintCh((char)(col ? (col > 0 ? chSW : chNW) : chJE));
  63.     PrintTab(chH, CREDITWIDTH);
  64.     PrintCh((char)(col ? (col > 0 ? chSE : chNE) : chJW));
  65.   } else {
  66.     i = CchSz(sz);
  67.     PrintCh(chV);
  68.     PrintTab(' ', (CREDITWIDTH-i)/2 + (i&1));
  69.     AnsiColor(col);
  70.     PrintSz(sz);
  71.     PrintTab(' ', (CREDITWIDTH-i)/2);
  72.     AnsiColor(kRed);
  73.     PrintCh(chV);
  74.   }
  75.   PrintL();
  76. }
  77.  
  78.  
  79. /* Display a list of credits showing those who helped create the various  */
  80. /* parts of Astrolog, as well as important copyright and version info, as */
  81. /* displayed with the -Hc switch.                                         */
  82.  
  83. void DisplayCredits()
  84. {
  85.   char sz[cchSzDef];
  86.  
  87.   PrintW(NULL, -1);
  88.   sprintf(sz, "** %s version %s **", szAppName, szVersionCore);
  89.   PrintW(sz, kWhite);
  90.   sprintf(sz, "As of %s", szDateCore); PrintW(sz, kLtGray);
  91.   sprintf(sz, "By Walter D. Pullen (%s)", szAddressCore); PrintW(sz, kCyan);
  92.   PrintW(NULL, 0);
  93.   PrintW("Main planetary calculation formulas were converted from", kGreen);
  94.   PrintW(
  95.     "routines by James Neely, as listed in 'Manual of Computer Programming",
  96.     kGreen);
  97.   PrintW(
  98.     "for Astrologers' by Michael Erlewine, available from Matrix Software.",
  99.     kGreen);
  100.   PrintW("PostScript graphics routines by Brian D. Willoughby.", kYellow);
  101.   PrintW(
  102.     "Extended ephemeris calculation and formulas are by Alois Treindl,",
  103.     kMagenta);
  104.   PrintW(
  105.     "as in the package 'Placalc', available from Astrodienst AG.", kMagenta);
  106.   PrintW(
  107.     "IMPORTANT: Astrolog is 'freeware', but is copyrighted and not in public",
  108.     kLtGray);
  109.   PrintW(
  110.     "domain. Permission is granted to freely use and distribute these",
  111.     kLtGray);
  112.   PrintW(
  113.     "routines provided one does not sell, restrict, or profit from the",
  114.     kLtGray);
  115.   PrintW(
  116.     "program or its output in any way. Modification is allowed provided",
  117.     kLtGray);
  118.   PrintW(
  119.     "these exact notices remain with any altered or edited versions of the",
  120.     kLtGray);
  121.   PrintW(
  122.     "program. These conditions are true of both the program in whole and of",
  123.     kLtGray);
  124.   PrintW(
  125.     "all parts by any individual author. Violators are subject to copyright",
  126.     kLtGray);
  127.   PrintW(
  128.     "law penalties, and negative karmic debts to aforementioned contributors.",
  129.     kLtGray);
  130.   PrintW(NULL, 0);
  131.   PrintW(
  132.     "Special thanks to all those unmentioned, seen and unseen, who have",
  133.      kBlue);
  134.   PrintW(
  135.     "pointed out problems, suggested features, & sent many positive vibes! :)",
  136.     kBlue);
  137.   PrintW(NULL, 1);
  138.   AnsiColor(kDefault);
  139. }
  140.  
  141.  
  142. /* Print out a command switch or keypress info line to the screen, as done  */
  143. /* with the -H switch or 'H' key in a graphic window. This is just printing */
  144. /* out the string, except in Ansi mode we set the proper colors: Red for    */
  145. /* header lines, Green for individual switches or keys, and White for the   */
  146. /* rest of the line telling what it does. We also prefix each switch with   */
  147. /* either Unix's '-' or PC's '/', whichever is appropriate for the system.  */
  148.  
  149. void PrintS(sz)
  150. char *sz;
  151. {
  152.   int dash;
  153.   char c;
  154.  
  155.   dash = sz[1];
  156.   if (*sz != ' ')
  157.     AnsiColor(kRed);
  158.   else if (dash != ' ')
  159.     AnsiColor(dash == 'P' || sz[3] == ' ' || sz[3] == ':' ?
  160.       kGreen : kDkGreen);
  161.   else
  162.     AnsiColor(kDefault);
  163.   while ((c = *sz) && c != ':' &&
  164.     (dash != 'P' || (c != ' ' || *(sz+1) != 't'))) {
  165.     if (c != '_')
  166.       PrintCh(c);
  167.     else
  168.       PrintCh(chSwitch);
  169.     sz++;
  170.   }
  171.   if (*sz)
  172.     PrintCh(*sz++);
  173.   AnsiColor(kDefault);
  174.   while (c = *sz) {
  175.     if (c != '_')
  176.       PrintCh(c);
  177.     else
  178.       PrintCh(chSwitch);
  179.     sz++;
  180.   }
  181.   PrintL();
  182. }
  183.  
  184.  
  185. /* Print a list of every command switch that can be passed to the program, */
  186. /* and a description of what it does. This is what the -H switch prints.   */
  187.  
  188. void DisplaySwitches()
  189. {
  190.   char sz[cchSzDef];
  191.  
  192.   sprintf(sz, "%s (version %s) command switches:", szAppName, szVersionCore);
  193.   PrintS(sz);
  194.   PrintS(" _H: Display this help list.");
  195.   PrintS(" _Hc: Display program credits and copyrights.");
  196.   PrintS(" _HC: Display names of zodiac signs and houses.");
  197.   PrintS(" _HO: Display available planets and other celestial objects.");
  198.   PrintS(" _HA: Display available aspects, their angles, and present orbs.");
  199. #ifdef CONSTEL
  200.   PrintS(" _HF: Display names of astronomical constellations.");
  201. #endif
  202.   PrintS(" _HS: Display information about planets in the solar system.");
  203. #ifdef INTERPRET
  204.   PrintS(" _HI: Display meanings of signs, houses, planets, and aspects.");
  205. #endif
  206.   sprintf(sz,
  207.     " _He: Display all info tables together (_Hc_H_Y_HX_HC_HO_HA%s_HS%s).",
  208. #ifdef CONSTEL
  209.   "_HF",
  210. #else
  211.   "",
  212. #endif
  213. #ifdef INTERPRET
  214.   "_HI");
  215. #else
  216.   "");
  217. #endif
  218.   PrintS(sz);
  219.   PrintS(" _Q: Prompt for more command switches after display finished.");
  220. #ifdef SWITCHES
  221.   PrintS(" _Q0: Like _Q but prompt for additional switches on startup.");
  222. #endif
  223.   PrintS(" _M <1-48>: Run the specified command switch macro.");
  224.   PrintS(" _M0 <1-48> <string>: Define the specified command switch macro.");
  225.   PrintS(" _Y: Display help list of less commonly used command switches.");
  226.   PrintS("\nSwitches which determine the type of chart to display:");
  227.   PrintS(" _v: Display list of object positions (chosen by default).");
  228.   PrintS(" _v0: Like _v but express velocities relative to average speed.");
  229.   PrintS(" _w [<rows>]: Display chart in a graphic house wheel format.");
  230.   PrintS(" _w0 [..]: Like _w but reverse order of objects in houses 4..9.");
  231.   PrintS(" _g: Display aspect and midpoint grid among planets.");
  232.   PrintS(" _g0: Like _g but flag aspect configurations (e.g. Yod's) too.");
  233.   PrintS(" _g0: For comparison charts, show midpoints instead of aspects.");
  234.   PrintS(" _ga: Like _g but indicate applying instead of difference orbs.");
  235.   PrintS(" _gp: Like _g but generate parallel and contraparallel aspects.");
  236.   PrintS(" _a: Display list of all aspects ordered by influence.");
  237.   PrintS(" _a0: Like _a but display aspect summary too.");
  238.   PrintS(" _a[0]a: Like _a but indicate applying and separating orbs.");
  239.   PrintS(" _a[0]p: Like _a but do parallel and contraparallel aspects.");
  240.   PrintS(" _m: Display all object midpoints in sorted zodiac order.");
  241.   PrintS(" _m0: Like _m but display midpoint summary too.");
  242.   PrintS(" _Z: Display planet locations with respect to the local horizon.");
  243. #ifdef GRAPH
  244.   PrintS(" _Z0: Like _Z but express coordinates relative to polar center.");
  245. #endif
  246.   PrintS(" _Zd: Search day for object local rising and setting times.");
  247.   PrintS(" _S: Display x,y,z coordinate positions of planets in space.");
  248.   PrintS(" _j: Display astrological influences of each object in chart.");
  249.   PrintS(" _j0: Like _j but include influences of each zodiac sign as well.");
  250.   PrintS(" _L [<step>]: Display astro-graph locations of planetary angles.");
  251.   PrintS(" _L0 [..]: Like _L but display list of latitude crossings too.");
  252.   PrintS(" _K: Display a calendar for given month.");
  253.   PrintS(" _Ky: Like _K but display a calendar for the entire year.");
  254.   PrintS(" _d [<step>]: Print all aspects and changes occurring in a day.");
  255.   PrintS(" _dm: Like _d but print all aspects for the entire month.");
  256.   PrintS(" _dy: Like _d but print all aspects for the entire year.");
  257.   PrintS(" _dY <years>: Like _d but search within a number of years.");
  258.   PrintS(" _dp <month> <year>: Print aspects within progressed chart.");
  259.   PrintS(" _dpy <year>: Like _dp but search for aspects within entire year.");
  260.   PrintS(" _dpY <year> <years>: Like _dp but search within number of years.");
  261.   PrintS(" _dp[y]n: Search for progressed aspects in current month/year.");
  262.   PrintS(" _D: Like _d but display aspects by influence instead of time.");
  263.   PrintS(" _E: Display planetary ephemeris for given month.");
  264.   PrintS(" _Ey: Display planetary ephemeris for the entire year.");
  265.   PrintS(" _EY <years>: Display planetary ephemeris for a number of years.");
  266.   PrintS(
  267.     " _e: Print all charts together (i.e. _v_w_g0_a_m_Z_S_j0_L0_K_d_D_E).");
  268.   PrintS(
  269.     " _t <month> <year>: Compute all transits to natal planets in month.");
  270.   PrintS(
  271.     " _tp <month> <year>: Compute progressions in month for chart.");
  272.   PrintS(" _t[p]y: <year>: Compute transits/progressions for entire year.");
  273.   PrintS(" _t[p]Y: <year> <years>: Compute transits for a number of years.");
  274. #ifdef TIME
  275.   PrintS(" _t[py]n: Compute transits to natal planets for current time now.");
  276. #endif
  277.   PrintS(" _T <month> <day> <year>: Display transits ordered by influence.");
  278.   PrintS(" _Tp <month> <day> <year>: Print progressions instead of transits.");
  279. #ifdef TIME
  280.   PrintS(" _T[p]n: Display transits ordered by influence for current date.");
  281. #endif
  282. #ifdef ARABIC
  283.   PrintS(" _P [<parts>]: Display list of Arabic parts and their positions.");
  284.   PrintS(" _P0 [<parts>]: Like _P but display formulas with terms reversed.");
  285.   PrintS(" _P[z,n,f]: Order parts by position, name, or formula.");
  286. #endif
  287. #ifdef INTERPRET
  288.   PrintS(" _I [<columns>]: Print interpretation of selected charts.");
  289. #endif
  290.   PrintS("\nSwitches which affect how the chart parameters are obtained:");
  291. #ifdef TIME
  292.   PrintS(" _n: Compute chart for this exact moment using current time.");
  293.   PrintS(" _n[d,m,y]: Compute chart for start of current day, month, year.");
  294. #endif
  295.   PrintS(" _z [<zone>]: Change the default time zone (for _d_E_t_q options).");
  296.   PrintS(" _z0 [<offset>]: Change the default daylight time setting.");
  297.   PrintS(" _zl <long> <lat>: Change the default longitude & latitude.");
  298.   PrintS(" _zt <time>: Set only the time of current chart.");
  299.   PrintS(" _zd <date>: Set only the day of current chart.");
  300.   PrintS(" _zi <name> <place>: Set name and place strings of current chart.");
  301.   PrintS(" _q <month> <date> <year> <time>: Compute chart with defaults.");
  302.   PrintS(" _qd <month> <date> <year>: Compute chart for noon on date.");
  303.   PrintS(" _qm <month> <year>: Compute chart for first of month.");
  304.   PrintS(" _qy <year>: Compute chart for first day of year.");
  305.   PrintS(" _qa <month> <date> <year> <time> <zone> <long> <lat>:");
  306.   PrintS("     Compute chart automatically given specified data.");
  307.   PrintS(" _qb <month> <date> <year> <time> <daylight> <zone> <long> <lat>:");
  308.   PrintS("     Like _qa but takes additional parameter for daylight offset.");
  309.   PrintS(" _qj <day>: Compute chart for time of specified Julian day.");
  310.   PrintS(" _i <file>: Compute chart based on info in file.");
  311.   PrintS(" _o <file> [..]: Write parameters of current chart to file.");
  312.   PrintS(" _o0 <file> [..]: Like _o but output planet/house positions.");
  313.   PrintS(" _os <file>, > <file>: Redirect output of text charts to file.");
  314.   PrintS("\nSwitches which affect what information is used in a chart:");
  315.   PrintS(" _R [<obj1> [<obj2> ..]]: Restrict specific bodies from displays.");
  316.   PrintS(" _R0 [<obj1> ..]: Like _R but restrict everything first.");
  317.   PrintS(" _R1 [<obj1> ..]: Like _R0 but unrestrict and show all objects.");
  318.   PrintS(" _R[C,u,U]: Restrict all minor cusps, all uranians, or stars.");
  319.   PrintS(" _RT[0,1,C,u,U] [..]: Restrict transiting planets in _t lists.");
  320.   PrintS(" _RA [<asp1> ..]: Restrict aspects by giving them negative orbs.");
  321.   PrintS(" _C: Include angular and non-angular house cusps in charts.");
  322.   PrintS(" _u: Include transneptunian/uranian bodies in charts.");
  323.   PrintS(" _U: Include locations of fixed background stars in charts.");
  324.   PrintS(" _U[z,l,n,b]: Order by azimuth, altitude, name, or brightness.");
  325.   PrintS(" _A <0-18>: Specify the number of aspects to use in charts.");
  326.   PrintS(" _Ao <aspect> <orb>: Specify maximum orb for an aspect.");
  327.   PrintS(" _Am <planet> <orb>: Specify maximum orb allowed to a planet.");
  328.   PrintS(" _Ad <planet> <orb>: Specify orb addition given to a planet.");
  329.   PrintS(" _Aa <aspect> <angle>: Change the actual angle of an aspect.");
  330.   PrintS("\nSwitches which affect how a chart is computed:");
  331. #ifdef PLACALC
  332.   PrintS(" _b: Use ephemeris files for more accurate location computations.");
  333.   PrintS(" _b0: Like _b but display locations to the nearest second too.");
  334. #endif
  335.   PrintS(" _c <value>: Select a different default system of houses.");
  336.   PrintS(
  337.     "     (0 = Placidus, 1 = Koch, 2 = Equal, 3 = Campanus, 4 = Meridian,");
  338.   PrintS(
  339.     "     5 = Regiomontanus, 6 = Porphyry, 7 = Morinus, 8 = Topocentric,");
  340.   PrintS(
  341.     "     9 = Equal (MC), 10 = Neo-Porphyry, 11 = Whole, 12 = None.)");
  342.   PrintS(" _s [..]: Compute a sidereal instead of the normal tropical chart.");
  343.   PrintS(" _sr: Compute right ascension locations relative to equator.");
  344.   PrintS(
  345.     " _s[z,h,d]: Display locations as in zodiac, hours/minutes, or degrees.");
  346.   PrintS(" _h [<objnum>]: Compute positions centered on specified object.");
  347.   PrintS(" _p <month> <day> <year>: Cast 2ndary progressed chart for date.");
  348.   PrintS(" _p0 <month> <day> <year>: Cast solar arc chart for date.");
  349. #ifdef TIME
  350.   PrintS(" _p[0]n: Cast progressed chart based on current date now.");
  351. #endif
  352.   PrintS(" _pd <days>: Set no. of days to progress / day (default 365.25).");
  353.   PrintS(" _x <value>: Cast harmonic chart based on specified factor.");
  354.   PrintS(" _1 [<objnum>]: Cast chart with specified object on Ascendant.");
  355.   PrintS(" _2 [<objnum>]: Cast chart with specified object on Midheaven.");
  356.   PrintS(" _3: Display objects in their zodiac decan positions.");
  357.   PrintS(" _f: Display houses as sign positions (flip them).");
  358.   PrintS(" _G: Compute houses based on geographic location only.");
  359.   PrintS(" _F <objnum> <sign> <deg>: Force object's position to be value.");
  360.   PrintS(" _+ [<days>]: Cast chart for specified no. of days in the future.");
  361.   PrintS(" _- [<days>]: Cast chart for specified no. of days in the past.");
  362.   PrintS(" _+[m,y] [<value>]: Cast chart for no. of months/years in future.");
  363.   PrintS("\nSwitches for relationship and comparison charts:");
  364.   PrintS(" _r <file1> <file2>: Compute a relationship synastry chart.");
  365.   PrintS(" _rc <file1> <file2>: Compute a composite chart.");
  366.   PrintS(" _rm <file1> <file2>: Compute a time space midpoint chart.");
  367.   PrintS(" _r[c,m]0 <file1> <file2> <ratio1> <ratio2>: Weighted chart.");
  368.   PrintS(" _rd <file1> <file2>: Print time span between files' dates.");
  369. #ifdef BIORHYTHM
  370.   PrintS(" _rb <file1> <file2>: Display biorhythm for file1 at time file2.");
  371. #endif
  372.   PrintS(" _r0 <file1> <file2>: Keep the charts separate in comparison.");
  373.   PrintS(" _rp[0] <file1> <file2>: Like _r0 but do file1 progr. to file2.");
  374.   PrintS(" _rt <file1> <file2>: Like _r0 but treat file2 as transiting.");
  375. #ifdef TIME
  376.   PrintS(" _y <file>: Display current house transits for particular chart.");
  377. #ifdef BIORHYTHM
  378.   PrintS(" _y[b,d,p,t] <file>: Like _r0 but compare to current time now.");
  379. #endif
  380. #endif /* TIME */
  381.   PrintS("\nSwitches to access graphics options:");
  382.   PrintS(" _k: Display text charts using Ansi characters and color.");
  383. #ifdef MSG
  384.   PrintS(" _V: <25,43,50>: Start up with text mode set to number of rows.");
  385. #endif
  386.  
  387.   /* If graphics features are compiled in, call an additional procedure to */
  388.   /* display the command switches offered dealing with the graphics stuff. */
  389.  
  390. #ifdef GRAPH
  391.   DisplaySwitchesX();
  392. #endif
  393. }
  394.  
  395.  
  396. /* Print a list of the obscure command switches that can be passed to the */
  397. /* program and a description of them. This is what the -Y switch prints.  */
  398.  
  399. void DisplaySwitchesRare()
  400. {
  401.   char sz[cchSzDef];
  402.  
  403.   sprintf(sz, "%s (version %s) obscure command switches:",
  404.     szAppName, szVersionCore);
  405.   PrintS(sz);
  406.   PrintS(" _Y: Display this help list.");
  407.   PrintS(" _Yn: Compute location of true instead of mean node.");
  408.   PrintS(" _Yd: Display dates in D/M/Y instead of M/D/Y format.");
  409.   PrintS(" _Yt: Display times in 24 hour instead of am/pm format.");
  410.   PrintS(" _YC: Automatically ignore insignificant house cusp aspects.");
  411.   PrintS(" _Y8: Clip text charts at the 80th column.");
  412.   PrintS(" _YQ <rows>: Pause text scrolling after a page full has printed.");
  413.   PrintS(" _Yo: Output chart info and position files in old style format.");
  414. #ifdef ARABIC
  415.   PrintS(" _YP <-1,0,1>: Set how Arabic parts are computed for night charts.");
  416. #endif
  417.   PrintS(" _YE <obj> <semi-major axis> <eccentricity (3)> <inclination (3)>");
  418.   PrintS("     <perihelion (3)> <ascending node (3)> <time offset (3)>");
  419.   PrintS("     Change orbit of object to be the given elements.");
  420.   PrintS(
  421.     " _YR <obj1> <obj2> <flag1>..<flag2>: Set restrictions for object range.");
  422.   PrintS(
  423.     " _YRT <obj1> <obj2> <flag1>..<flag2>: Transit restrictions for range.");
  424.   PrintS(
  425.     " _YR0 <flag1> <flag2>: Set restrictions for sign, direction changes.");
  426.   PrintS(
  427.     " _YAo <asp1> <asp2> <orb1>..<orb2>: Set aspect orbs for range.");
  428.   PrintS(
  429.     " _YAm <obj1> <obj2> <orb1>..<orb2>: Set max planet orbs for range.");
  430.   PrintS(
  431.     " _YAd <obj1> <obj2> <orb1>..<orb2>: Set planet orb additions for range.");
  432.   PrintS(
  433.     " _Yj <obj1> <obj2> <inf1>..<inf2>: Set influences for object range.");
  434.   PrintS(
  435.     " _YjC <cusp1> <cusp2> <inf1>..<inf2>: Set influences for house cusps.");
  436.   PrintS(
  437.     " _YjA <asp1> <asp2> <inf1>..<inf2>: Set influences for aspect range.");
  438.   PrintS(
  439.     " _YjT <obj1> <obj2> <inf1>..<inf2>: Set transit influences for range.");
  440.   PrintS(
  441.     " _Yj0 <inf1> <inf2> <inf3> <inf4>: Set influences given to planets");
  442.   PrintS("     in ruling sign, exalted sign, ruling house, exalted house.");
  443.   PrintS(" _YI <obj> <string>: Customize interpretation for object.");
  444.   PrintS(
  445.     " _YIa <sign> <string>: Customize interpretation adjective for sign.");
  446.   PrintS(" _YIv <sign> <string>: Customize interpretation verb for sign.");
  447.   PrintS(" _YIC <house> <string>: Customize interpretation for house.");
  448.   PrintS(" _YIA <asp> <string>: Customize interpretation for aspect.");
  449.   PrintS(" _YIA0 <asp> <string>: Customize aspect interpretation statement.");
  450.   PrintS(" _YkC <fir> <ear> <air> <wat>: Customize element colors.");
  451.   PrintS(" _YkA <asp1> <asp2> <col1>..<col2>: Customize aspect colors.");
  452.   PrintS(" _Yk0 <1..7> <1..7> <col1>..<col2>: Customize 'rainbow' colors.");
  453.   PrintS(" _Yk <0..8> <0..8> <col1>..<col2>: Customize 'general' colors.");
  454.   PrintS(" _YXG <0-2><0-2><0-2><0-3>: Select among different graphic glyphs");
  455.   PrintS("     for Capricorn, Uranus, Pluto, and Lilith.");
  456.   PrintS(" _YXg <cells>: Set number of cells for graphic aspect grid.");
  457.   PrintS(" _YXf <val>: Set usage of actual system fonts in graphic file.");
  458.   PrintS(" _YXp <-1,0,1>: Set paper orientation for PostScript files.");
  459.   PrintS(" _YXp0 <hor> <ver>: Set paper size for PostScript files.");
  460. #ifdef PCG
  461.   PrintS(" _YX <hi-res> <lo-res>: Set modes to use for PC screen graphics.");
  462. #endif
  463.   PrintS(" _;: Ignore rest of command line and treat it as a comment.");
  464. }
  465.  
  466.  
  467. /* Print out a list of the various objects - planets, asteroids, house     */
  468. /* cusps, stars - recognized by the program, and their index values. This  */
  469. /* is displayed when the -O switch is invoked. For some objects, display   */
  470. /* additional information, e.g. ruling signs for planets, brightnesses and */
  471. /* positions in the sky for fixed stars, etc.                              */
  472.  
  473. void PrintObjects()
  474. {
  475.   char sz[cchSzDef];
  476.   CI ci;
  477.   int i, j;
  478.   real Off;
  479.  
  480.   if (!us.fCusp)
  481.     for (i = cuspLo; i <= cuspHi; i++)    /* Set up restrictions properly: */
  482.       ignore[i] = fTrue;                  /* Minor cusps and uranians      */
  483.   if (!us.fUranian)                       /* included only if -C and -u    */
  484.     for (i = uranLo; i <= uranHi; i++)    /* switches are in effect.       */
  485.       ignore[i] = fTrue;
  486.   sprintf(sz, "%s planets and objects:\n", szAppName);
  487.   PrintSz(sz);
  488.   PrintSz("No. Name       Rule Co-Rule Fall Co-Fall Exalt Debilitate\n\n");
  489.   for (i = 1; i <= oNorm; i++) if (!ignore[i]) {
  490.     AnsiColor(kObjA[i]);
  491.     sprintf(sz, "%2d %-12s", i, szObjName[i]); PrintSz(sz);
  492.     if (i <= oCore) {                              /* Print rulerships, etc */
  493.       if (ruler1[i]) {                             /* for the planets.      */
  494.         j = ruler2[i];
  495.         sprintf(sz, "%c%c%c  %c%c%c     ", chSig3(ruler1[i]),
  496.           j ? szSignName[j][0] : ' ', j ? szSignName[j][1] : ' ',
  497.           j ? szSignName[j][2] : ' '); PrintSz(sz);
  498.         sprintf(sz, "%c%c%c  %c%c%c     ", chSig3(Mod12(ruler1[i]+6)),
  499.           j ? szSignName[Mod12(j+6)][0] : ' ',
  500.           j ? szSignName[Mod12(j+6)][1] : ' ',
  501.           j ? szSignName[Mod12(j+6)][2] : ' '); PrintSz(sz);
  502.         sprintf(sz, "%c%c%c   %c%c%c", chSig3(exalt[i]),
  503.           chSig3(Mod12(exalt[i]+6))); PrintSz(sz);
  504.       }
  505.     } else {
  506.       if (ruler1[i]) {
  507.         sprintf(sz, "%c%c%c          %c%c%c", chSig3(ruler1[i]),
  508.           chSig3(Mod12(ruler1[i]+6))); PrintSz(sz);
  509.         sprintf(sz, "          %c%c%c   %c%c%c", chSig3(exalt[i]),
  510.           chSig3(Mod12(exalt[i]+6))); PrintSz(sz);
  511.       }
  512.       if (i <= cuspHi)
  513.         sprintf(sz, "  House Cusp #%d", i-cuspLo+1);
  514.       else
  515.         sprintf(sz, "  Uranian #%d", i-uranLo+1);
  516.       PrintSz(sz);
  517.     }
  518.     PrintL();
  519.   }
  520.  
  521.   /* Now, if -U in effect, read in and display stars in specified order. */
  522.  
  523.   if (us.nStar) {
  524.     ci = ciCore;
  525.     Off = ProcessInput(fTrue);
  526.     ciCore = ci;
  527.     ComputeStars(us.fSiderial ? 0.0 : -Off);
  528.     for (i = starLo; i <= starHi; i++) if (!ignore[i]) {
  529.       j = oNorm+starname[i-oNorm];
  530.       AnsiColor(kObjA[j]);
  531.       sprintf(sz, "%2d %-12s", i, szObjName[j]); PrintSz(sz);
  532.       sprintf(sz, "Star #%2d   ", i-oNorm); PrintSz(sz);
  533.       PrintZodiac(planet[j]);
  534.       PrintTab(' ', 4);
  535.       PrintAltitude(planetalt[j]);
  536.       sprintf(sz, " %5.2f\n", starbright[j-oNorm]); PrintSz(sz);
  537.     }
  538.   }
  539.   AnsiColor(kDefault);
  540. }
  541.  
  542.  
  543. /* Print out a list of all the aspects recognized by the program, and info  */
  544. /* about them: their names, index numbers, degree angles, present orbs, and */
  545. /* the description of their glyph. This gets displayed when the -A switch   */
  546. /* is invoked (without any argument).                                       */
  547.  
  548. void PrintAspects()
  549. {
  550.   char sz[cchSzDef];
  551.   int i;
  552.  
  553.   sprintf(sz,
  554.     "%s aspects:\nNo. Name         Abbrev. ", szAppName); PrintSz(sz);
  555.   PrintSz("Angle    Orb          Description of glyph\n\n");
  556.   for (i = 1; i <= cAspect; i++) {
  557.     AnsiColor(kAspA[i]);
  558.     sprintf(sz, "%2d %-15s(%s) %6.2f +/- %1.0f degrees - %s\n",
  559.       i, szAspectName[i], szAspectAbbrev[i],
  560.       aspectangle[i], aspectorb[i], szAspectGlyph[i]); PrintSz(sz);
  561.   }
  562.   AnsiColor(kDefault);
  563. }
  564.  
  565.  
  566. /* Print out a list of the 12 signs and houses of the zodiac, and their    */
  567. /* standard and traditional names, as done when the -H0 switch is invoked. */
  568.  
  569. void PrintSigns()
  570. {
  571.   char sz[cchSzDef];
  572.   int i;
  573.  
  574.   sprintf(sz, "%s signs and houses:\n", szAppName); PrintSz(sz);
  575.   PrintSz("Sign        English name      House Traditional name\n\n");
  576.   for (i = 1; i <= cSign; i++) {
  577.     AnsiColor(kSignA(i));
  578.     sprintf(sz, "%-12sthe %-14s%2d%s  House of %s\n",
  579.       szSignName[i], szSignEnglish[i], i, szSuffix[i], szHouseTradition[i]);
  580.     PrintSz(sz);
  581.   }
  582.   AnsiColor(kDefault);
  583. }
  584.  
  585.  
  586. #ifdef CONSTEL
  587. /* Given the standard 'noun' form of a constellation string, convert it  */
  588. /* to its genitive or posessive form. Some standard rules are used but a */
  589. /* special instructions string is passed for special cases.              */
  590.  
  591. char *GetSzGenitive(szGen, szInst)
  592. char *szGen, *szInst;
  593. {
  594.   char *pch, ch1, ch2;
  595.   int cch;
  596.  
  597.   pch = szGen + CchSz(szGen);
  598.   if (*szInst == ' ')            /* Instructions starting with a space or */
  599.     szInst++;                    /* that are empty means no special case. */
  600.   else if (*szInst) {
  601.     cch = *szInst - '0';
  602.     if (cch < 10) {          /* Instructions starting with a number means */
  603.       szInst++;              /* hack off that many characters of string.  */
  604.       pch -= cch;
  605.     }
  606.     while (*szInst > '9')  /* Instructions end with characters to append. */
  607.       *pch++ = *szInst++;
  608.     *pch = chNull;
  609.     return szInst;
  610.   }
  611.   ch1 = *(pch-1);
  612.   ch2 = *(pch-2);
  613.   if (ch1 == 'a') {           /* Standard rule: 'a' ending -> 'ae'. */
  614.     *pch++ = 'e';
  615.     *pch = chNull;
  616.   } else if (ch1 == 's' && ch2 == 'u') {     /* 'us' ending -> 'i'. */
  617.     *(pch-2) = 'i';
  618.     *(pch-1) = chNull;
  619.   } else if (ch1 == 'm' && ch2 == 'u') {     /* 'um' ending -> 'i'. */
  620.     *(pch-2) = 'i';
  621.     *(pch-1) = chNull;
  622.   } else if (ch1 == 'x')     /* Standard rule: 'x' ending -> 'cis'. */
  623.     sprintf(pch-1, "cis");
  624.   return szInst;
  625. }
  626.  
  627.  
  628. /* Given a constellation index, fill out a string with the genitive or   */
  629. /* posessive form of its name. This basically just calls GetSzGenitive() */
  630. /* above, however it has to be called twice for names having two words.  */
  631.  
  632. void GetSzConstel(szGen, i)
  633. char *szGen;
  634. int i;
  635. {
  636.   char sz1[cchSzDef], sz2[cchSzDef], *pchSpace, *szInst;
  637.  
  638.   sprintf(szGen, "%s", szCnstlName[i]);
  639.   for (pchSpace = szGen; *pchSpace && *pchSpace != ' '; pchSpace++)
  640.     ;
  641.   szInst = (char *)szCnstlGenitive[i];
  642.   if (*pchSpace == chNull) {
  643.     GetSzGenitive(szGen, szInst);
  644.     return;
  645.   }
  646.   *pchSpace = chNull;
  647.   if (szInst[0] == '!') {
  648.     GetSzGenitive(szGen, szInst+1);
  649.     return;
  650.   }
  651.   sprintf(sz1, "%s", szGen);
  652.   sprintf(sz2, "%s", pchSpace+1);
  653.   szInst = GetSzGenitive(sz1, szInst);
  654.   GetSzGenitive(sz2, szInst);
  655.   sprintf(szGen, "%s %s", sz1, sz2);
  656. }
  657.  
  658.  
  659. /* Print out a list of the 88 constellations used in astronomy, in their  */
  660. /* standard, English, and genitive forms, as invoked with the -HF switch. */
  661.  
  662. void PrintConstellations()
  663. {
  664.   int i, j = eWat;
  665.   char szGen[cchSzDef], sz[cchSzDef], chLast = chNull;
  666.  
  667.   sprintf(sz, "%s constellations:\n", szAppName); PrintSz(sz);
  668.   PrintSz("No. Name                Abbrev.   ");
  669.   PrintSz("Meaning            Genitive form\n\n");
  670.   for (i = 1; i <= cCnstl; i++) {
  671.     if (szCnstlName[i][0] != chLast) {
  672.       chLast = szCnstlName[i][0];
  673.       j = j + 1 & 3;
  674.       AnsiColor(kElemA[j]);
  675.     }
  676.     sprintf(sz, "%2d: %-19s (%s) ", i, szCnstlName[i], szCnstlAbbrev[i]);
  677.     PrintSz(sz);
  678.     if (szCnstlMeaning[i][0] == ' ')
  679.       sprintf(sz, "%-22s", szCnstlMeaning[i]+1);
  680.     else
  681.       sprintf(sz, "the %-18s", szCnstlMeaning[i]);
  682.     PrintSz(sz);
  683.     GetSzConstel(szGen, i);
  684.     sprintf(sz, " (%s)\n", szGen); PrintSz(sz);
  685.   }
  686.   AnsiColor(kDefault);
  687. }
  688. #endif /* CONSTEL */
  689.  
  690.  
  691. /* Print out a list of the planets in the solar system (and our Moon), */
  692. /* listing astronomical info on them, as invoked with the -HS switch.  */
  693.  
  694. void PrintOrbit()
  695. {
  696.   char sz[cchSzDef];
  697.   int i;
  698.   real r;
  699.  
  700.   sprintf(sz, "%s planets:\n", szAppName); PrintSz(sz);
  701.   PrintSz("   Name: Distance   Year     Day Diameter       Mass Density  ");
  702.   PrintSz("Axis Satellites\n\n");
  703.   for (i = 0; i <= oPlu; i++) {
  704.     AnsiColor(kObjA[i]);
  705.     r = rObjDiam[i]*1000.0/2.0;
  706.     sprintf(sz, "%7s:%9.3f%7.2f%8.2f%9.3f%11.3f%8.2f%6.2f%11d\n",
  707.       szObjName[i], rObjDist[i]/rObjDist[0], rObjYear[i], rObjDay[i],
  708.       rObjDiam[i]/rObjDiam[0], rObjMass[i],
  709.       (rObjMass[i]*5.974E24/1000.0)/((4.0/3.0)*(r*r*r)*rPi),
  710.       rObjAxis[i], cSatellite[i]);
  711.     PrintSz(sz);
  712.   }
  713.   AnsiColor(kDefault);
  714. }
  715.  
  716.  
  717. #ifdef ARABIC
  718. /* Compare the strings corresponding to two Arabic part formulas. Like   */
  719. /* NCompareSz, this returns 0 if they are equal, a positive value if the */
  720. /* first is greater, and negative if the second is greater.              */
  721.  
  722. int NCompareSzPart(ap1, ap2)
  723. int ap1, ap2;
  724. {
  725.   char *pch1, *pch2;
  726.   int ich;
  727.  
  728.   pch1 = pi[ap1].form; pch2 = pi[ap2].form;
  729.   for (ich = 0; pch1[ich] && pch1[ich] == pch2[ich]; ich++) {
  730.     if (!us.fArabicFlip) {
  731.  
  732.       /* If formulas are being displayed in alternate form, we need to */
  733.       /* effectively swap two sections in the string and then compare. */
  734.  
  735.       if (ich == 2)
  736.         ich = 5;
  737.       else if (ich == 8)
  738.         ich = 2;
  739.       else if (ich == 5)
  740.         ich = 8;
  741.     }
  742.   }
  743.   return pch1[ich] - pch2[ich];
  744. }
  745.  
  746.  
  747. /* Print out a list of all the Arabic parts in the current chart, computing */
  748. /* their positions first, as brought up with the -P switch.                 */
  749.  
  750. void DisplayArabic()
  751. {
  752.   real rPart[cPart], rBit[3], rCur;
  753.   char sz[cchSzDef], *pch, ch;
  754.   int iPart[cPart], h, i, j, k, l;
  755.  
  756.   PrintSz("Num."); PrintTab(' ', 20); PrintSz("Name Position");
  757.   PrintTab(' ', 1 + 4 * is.fSeconds);
  758.   PrintSz("House Formula              Flip Type\n");
  759.  
  760.   /* Calculate the zodiac positions of all the parts. */
  761.  
  762.   for (i = 0; i < cPart; i++) {
  763.     rPart[i] = -rDegMax;
  764.     if (i >= us.nArabicParts)
  765.       goto LNextPart;
  766.     for (j = 0; j < 3; j++) {
  767.       pch = &pi[i].form[j*3];
  768.       ch = pch[1];
  769.       if (ch == ' ')
  770.         k = oAsc;
  771.       else if (ch == 'F')
  772.         k = -apFor;
  773.       else if (ch == 'S')
  774.         k = -apSpi;
  775.       else
  776.         k = (ch-'0') * 10 + (pch[2]-'0');
  777.       ch = *pch;
  778.       if (ch == 'h')      /* House cusp */
  779.         rCur = house[k];
  780.       else if (ch == 'r') /* Ruler of house cusp */
  781.         rCur = planet[rules[SFromZ(house[k])]];
  782.       else if (ch == 'j') /* 10 degrees of house cusp */
  783.         rCur = house[k] + 10.0;
  784.       else if (ch == 'H') /* Planet's house */
  785.         rCur = house[inhouse[k]];
  786.       else if (ch == 'R') /* Ruler of planet's house */
  787.         rCur = planet[rules[SFromZ(house[inhouse[k]])]];
  788.       else if (ch == 'D') /* Dispositor / ruler of planet's position */
  789.         rCur = planet[rules[SFromZ(planet[k])]];
  790.       else if (FBetween(ch, '0', '3'))
  791.         rCur = (real)((ch-'0') * 100 + k);
  792.       else {
  793.         if (k < 1) {
  794.           rCur = rPart[-k];
  795.           if (rCur < 0.0)
  796.             goto LNextPart;
  797.         } else {
  798.           if (ignore[k] && (us.fCusp || !FCusp(k)))
  799.             goto LNextPart;
  800.           else
  801.             rCur = planet[k];
  802.         }
  803.       }
  804.       rBit[j] = rCur;
  805.     }
  806.     rCur = rBit[1] - rBit[2];
  807.     if (us.nArabicNight < 0 || (pi[i].form[9] == 'F' &&
  808.       inhouse[oSun] < sLib && us.nArabicNight == 0))
  809.       rCur = -rCur;
  810.     rCur = Mod(rCur + rBit[0]);
  811.     rPart[i] = rCur;
  812. LNextPart:
  813.     iPart[i] = i;
  814.   }
  815.  
  816.   /* Sort parts to figure out what order to display them in. */
  817.  
  818.   if (us.nArabic > 1) for (i = 1; i < cPart; i++) {
  819.     j = i-1;
  820.  
  821.     /* Compare part zodiac locations for -Pz switch. */
  822.  
  823.     if (us.nArabic == 'z') while (j >= 0 &&
  824.       rPart[iPart[j]] > rPart[iPart[j+1]]) {
  825.       SwapN(iPart[j], iPart[j+1]);
  826.       j--;
  827.  
  828.     /* Compare part names for -Pn switch. */
  829.  
  830.     } else if (us.nArabic == 'n') while (j >= 0 && NCompareSz(
  831.       pi[iPart[j]].name, pi[iPart[j+1]].name) > 0) {
  832.       SwapN(iPart[j], iPart[j+1]);
  833.       j--;
  834.  
  835.     /* Compare part formulas for -Pf switch. */
  836.  
  837.     } else if (us.nArabic == 'f') while (j >= 0 && NCompareSzPart(
  838.       iPart[j], iPart[j+1]) > 0) {
  839.       SwapN(iPart[j], iPart[j+1]);
  840.       j--;
  841.     }
  842.   }
  843.  
  844.   /* Display the positions and formulas of the parts. */
  845.  
  846.   for (h = i = 0; i < cPart; i++) {
  847.     l = iPart[i];
  848.     if (rPart[l] < 0.0)
  849.       continue;
  850.     sprintf(sz, "%3d: %23.23s ", ++h, pi[l].name); PrintSz(sz);
  851.     PrintZodiac(rPart[l]);
  852.     j = HousePlaceIn(rPart[l]);
  853.     sprintf(sz, " [%2d%s] ", j, szSuffix[j]);
  854.     AnsiColor(kSignA(j)); PrintSz(sz); AnsiColor(kDefault);
  855.     PrintCh('(');
  856.     for (j = 0; j < 3; j++) {
  857.       k = j < 1 || us.fArabicFlip ? j : 3-j;
  858.       pch = &pi[l].form[k*3];
  859.       ch = pch[1];
  860.       if (ch == ' ')
  861.         k = oAsc;
  862.       else if (ch == 'F')
  863.         k = -apFor;
  864.       else if (ch == 'S')
  865.         k = -apSpi;
  866.       else
  867.         k = (ch-'0') * 10 + (pch[2]-'0');
  868.       ch = *pch;
  869.       if (k < 1) {
  870.         AnsiColor(kObjA[oFor]);
  871.         sprintf(sz, "%3.3s", pi[-k].name); PrintSz(sz);
  872.       } else {
  873.         if (ch == ' ' || ch == 'H' || ch == 'R' || ch == 'D') {
  874.           AnsiColor(kSignA(ruler1[k]));
  875.           sprintf(sz, "%c%c%c", chObj3(k));
  876.         } else if (FBetween(ch, '0', '3')) {
  877.           k = (ch-'0') * 100 + k;
  878.           AnsiColor(kSignA(k/30+1));
  879.           sprintf(sz, "%2d%c%c%c", k%30, chSig3(k/30+1));
  880.         } else {
  881.           AnsiColor(kSignA(k));
  882.           sprintf(sz, "%3d", k);
  883.         }
  884.         PrintSz(sz);
  885.       }
  886.       AnsiColor(kDefault);
  887.       if (sz[3] == chNull) {
  888.         PrintCh(' ');
  889.         switch (ch) {
  890.         case 'h': ch = ' '; break;
  891.         case 'r': ch = 'R'; break;
  892.         case 'j': ch = '&'; break;
  893.         default: ch = *pch;
  894.         }
  895.         PrintCh(ch);
  896.       }
  897.       if (j < 2) {
  898.         sprintf(sz, " %c ", (j < 1 == us.fArabicFlip) ? '+' : '-');
  899.         PrintSz(sz);
  900.       }
  901.     }
  902.     PrintCh(' ');
  903.     ch = pi[l].form[9];
  904.     switch (ch) {
  905.     case 'F': PrintSz("Y"); break;
  906.     default: AnsiColor(kWhite); PrintSz("N"); AnsiColor(kDefault); break;
  907.     }
  908.     PrintSz(") ");
  909.     ch = pi[l].form[10];
  910.     switch (ch) {
  911.     case 'C': AnsiColor(kElemA[eWat]); PrintSz("Comm."); break;
  912.     case 'E': AnsiColor(kElemA[eFir]); PrintSz("Event"); break;
  913.     case 'H': AnsiColor(kElemA[eEar]); PrintSz("Hora."); break;
  914.     }
  915.     AnsiColor(kDefault);
  916.     PrintL();
  917.   }
  918. }
  919. #endif /* ARABIC */
  920.  
  921.  
  922. #ifdef GRAPH
  923. /* Print a list of every key that one can press in a graphics window to do  */
  924. /* a certain function, and a description of what it does, as displayed when */
  925. /* one presses the 'H' or '?' key, and as shown with the -HX switch.        */
  926.  
  927. void DisplayKeysX()
  928. {
  929.   char sz[cchSzDef];
  930.  
  931.   sprintf(sz, "%s graphics screen key press options (version %s):",
  932.     szAppName, szVersionCore);
  933.   PrintS(sz);
  934.   PrintS(" Press 'H' or '?' to display this list of key options.");
  935.   PrintS(" Press 'p' to toggle pause status on or off.");
  936.   PrintS(" Press 'x' to toggle fg/bg colors on screen.");
  937.   PrintS(" Press 'm' to toggle color/monochrome display on screen.");
  938.   PrintS(" Press 'i' to toggle status of the minor chart modification.");
  939.   PrintS(" Press 't' to toggle header info on current chart on screen.");
  940.   PrintS(" Press 'b' to toggle drawing of a border around the chart.");
  941.   PrintS(" Press 'l' to toggle labeling of object points in chart.");
  942.   PrintS(" Press 'j' to toggle not clearing screen between chart updates.");
  943.   PrintS(" Press 'v' to display current chart positions on text screen.");
  944.   PrintS(" Press 'R', 'C', 'u', 'U' to toggle restriction status of minor");
  945.   PrintS("       objects, minor house cusps, uranian planets, and stars.");
  946.   PrintS(" Press 'c' to toggle relationship comparison chart mode.");
  947.   PrintS(" Press 's', 'h', 'f', 'g' to toggle status of sidereal zodiac,");
  948.   PrintS("       heliocentric charts, domal charts, and decan charts.");
  949.   PrintS(" Press 'O' and 'o' to recall/store a previous chart from memory.");
  950. #ifdef X11
  951.   PrintS(" Press 'B' to dump current window contents to root background.");
  952. #else
  953.   PrintS(" Press 'B' to resize chart display to full size of screen.");
  954. #endif
  955.   PrintS(" Press 'Q' to resize chart display to a square.");
  956.   PrintS(" Press '<' and '>' to decrease/increase the scale size of the");
  957.   PrintS("       glyphs and the size of world map.");
  958.   PrintS(" Press '[' and ']' to decrease/increase tilt in globe display.");
  959.   PrintS(" Press '+' and '-' to add/subtract a day from current chart.");
  960. #ifdef TIME
  961.   PrintS(" Press 'n' to set chart information to current time now.");
  962. #endif
  963.   PrintS(" Press 'N' to toggle animation status on or off. Charts will");
  964.   PrintS("       be updated to current status and globe will rotate.");
  965.   PrintS(" Press '!'-'(' to begin updating current chart by adding times.");
  966.   PrintS("       !: seconds, @: minutes, #: hours, $: days, %: months,");
  967.   PrintS("       ^: years, &: years*10, *: years*100, (: years*1000.");
  968.   PrintS(" Press 'r' to reverse direction of time-lapse or animation.");
  969.   PrintS(" Press '1'-'9' to set rate of animation to 'n' degrees, etc.");
  970. #ifdef PCG
  971.   PrintS(" Press '1'-'9' to determine section of chart to show if clipped.");
  972. #endif
  973.   PrintS(" Press 'V','L','A','Z','S','J','K','E','W','G','P' to switch to");
  974.   PrintS("       normal (_v), astro-graph (_L), grid (_g), local (_Z),");
  975.   PrintS("       space (_S), dispositor (_j), calendar (_K), ephemeris");
  976.   PrintS("       (_E), world map (_XW), globe (_XG), and polar (_XP) modes.");
  977.   PrintS(" Press 'Y' to switch to biorhythm relation chart mode.");
  978.   PrintS(" Press '0' to toggle between _Z,_Z0 & _XW,_XW0 & _E,_Ey modes.");
  979. #ifdef CONSTEL
  980.   PrintS(" Press 'F' to toggle between world and constellation map modes.");
  981. #endif
  982. #ifdef PCG
  983.   PrintS(" Press 'F1'..'F12' [plus Shift,Ctrl,Alt] to run macros 1..48.");
  984. #endif
  985.   PrintS(" Press 'space' to force redraw of current graphics display.");
  986.   PrintS(" Press 'del' to clear the graphics screen and not redraw.");
  987. #ifdef PCG
  988.   PrintS(" Press 'tab' to toggle between graphics resolutions.");
  989. #endif
  990.   PrintS(" Press 'enter' to input a command line of general switches.");
  991.   PrintS(" Press 'q' to terminate graphics and the program.");
  992. #ifdef MOUSE
  993.   PrintL();
  994. #ifdef X11
  995.   PrintS(" Left   mouse button: Draw line strokes on chart in window.");
  996.   PrintS(" Middle mouse button: Print coordinates of pointer on world map.");
  997.   PrintS(" Right  mouse button: Terminate the window and program.");
  998. #endif
  999. #ifdef PCG
  1000.   PrintS(" Left  mouse button: Draw line strokes on chart in screen.");
  1001.   PrintS(" Right mouse button: Set coordinates to pointer on world map.");
  1002. #endif
  1003. #endif /* MOUSE */
  1004. }
  1005.  
  1006.  
  1007. /* Print a list of every command switch dealing with the graphics features  */
  1008. /* that can be passed to the program, and a description of what it does.    */
  1009. /* This is part of what the -H switch prints, if graphics were compiled in. */
  1010.  
  1011. void DisplaySwitchesX()
  1012. {
  1013.   PrintS(" _X: Create a graphics chart instead of displaying it as text.");
  1014. #ifdef ISG
  1015.   PrintS(" _Xb: Create bitmap file instead of putting graphics on screen.");
  1016. #endif
  1017.   PrintS(" _Xb[n,c,v,a,b]: Set bitmap file output mode to X11 normal,");
  1018.   PrintS("     compacted, very compact, Ascii (bmtoa), or Windows bmp.");
  1019. #ifdef PS
  1020.   PrintS(" _Xp: Create PostScript stroke graphic instead of bitmap file.");
  1021.   PrintS(" _Xp0: Like _Xp but create complete instead of encapsulated file.");
  1022. #endif
  1023. #ifdef META
  1024.   PrintS(" _XM[0]: Create Windows metafile stroke graphic instead of bitmap.");
  1025. #endif
  1026.   PrintS(" _Xo <file>: Write output bitmap or graphic to specified file.");
  1027. #ifdef X11
  1028.   PrintS(" _XB: Display X chart on root instead of in a separate window.");
  1029. #endif
  1030.   PrintS(" _Xm: Create monochrome graphic instead of one in color.");
  1031.   PrintS(" _Xr: Create chart graphic in reversed colors (white background).");
  1032. #ifdef X11
  1033.   PrintS(" _Xw <hor> [<ver>], _ge[..]: Change the size of chart graphic.");
  1034. #else
  1035.   PrintS(" _Xw <hor> [<ver>]: Change the size of chart graphic.");
  1036. #endif
  1037.   PrintS(" _Xs <100,200,300,400>: Change the size of map or characters by %.");
  1038.   PrintS(" _Xi: Create chart graphic in slightly modified form.");
  1039.   PrintS(" _Xt: Inhibit display of chart info at bottom of graphic.");
  1040.   PrintS(" _Xu: Inhibit display of a border around graphic.");
  1041.   PrintS(" _Xl: Inhibit labeling of object points in chart graphic.");
  1042.   PrintS(" _Xj: Don't clear screen between chart updates, drawing trails.");
  1043.   PrintS(" _X1 <object>: Rotate wheel charts so object is at left edge.");
  1044.   PrintS(" _X2 <object>: Rotate wheel charts so object is at top edge.");
  1045. #ifdef X11
  1046.   PrintS(" _Xd <name>, _di[..] <name>: Open X window on specified display.");
  1047. #endif
  1048.   PrintS(" _XW: Simply create an image of the world map.");
  1049.   PrintS(" _XW0: Like _XW but do a non-rectangular Mollewide projection.");
  1050.   PrintS(" _XG [<degrees>]: Display the image of the world as a globe.");
  1051.   PrintS(" _XP: Like _XG but create the globe from a polar projection.");
  1052. #ifdef CONSTEL
  1053.   PrintS(" _XF: Display maps as constellations on the celestial sphere.");
  1054. #endif
  1055. #ifdef ISG
  1056.   PrintS(" _Xn [<mode>]: Start up chart or globe display in animation mode.");
  1057.   PrintS(" _HX: Display list of key press options for screen graphics.");
  1058. #endif
  1059. }
  1060. #endif /* GRAPH */
  1061.  
  1062.  
  1063. /* This is the dispatch procedure for all the generic table information      */
  1064. /* routines, such as those displaying the -H switch list, the list of signs, */
  1065. /* objects, default interpretations, and so on not requiring a date or time. */
  1066.  
  1067. bool FPrintTables()
  1068. {
  1069.   if (us.fCredit) {
  1070.     DisplayCredits();
  1071.     is.fMult = fTrue;
  1072.   }
  1073.   if (us.fSwitch) {
  1074.     if (is.fMult)
  1075.       PrintL2();
  1076.     DisplaySwitches();
  1077.     is.fMult = fTrue;
  1078.   }
  1079.   if (us.fSwitchRare) {
  1080.     if (is.fMult)
  1081.       PrintL2();
  1082.     DisplaySwitchesRare();
  1083.     is.fMult = fTrue;
  1084.   }
  1085. #ifdef GRAPH
  1086.   if (us.fKeyGraph) {
  1087.     if (is.fMult)
  1088.       PrintL2();
  1089.     DisplayKeysX();
  1090.     is.fMult = fTrue;
  1091.   }
  1092. #endif
  1093.   if (us.fSign) {
  1094.     if (is.fMult)
  1095.       PrintL2();
  1096.     PrintSigns();
  1097.     is.fMult = fTrue;
  1098.   }
  1099.   if (us.fObject) {
  1100.     if (is.fMult)
  1101.       PrintL2();
  1102.     PrintObjects();
  1103.     is.fMult = fTrue;
  1104.   }
  1105.   if (us.fAspect) {
  1106.     if (is.fMult)
  1107.       PrintL2();
  1108.     PrintAspects();
  1109.     is.fMult = fTrue;
  1110.   }
  1111. #ifdef CONSTEL
  1112.   if (us.fConstel) {
  1113.     if (is.fMult)
  1114.       PrintL2();
  1115.     PrintConstellations();
  1116.     is.fMult = fTrue;
  1117.   }
  1118. #endif
  1119.   if (us.fOrbitData) {
  1120.     if (is.fMult)
  1121.       PrintL2();
  1122.     PrintOrbit();
  1123.     is.fMult = fTrue;
  1124.   }
  1125. #ifdef INTERPRET
  1126.   if (us.fMeaning) {
  1127.     if (is.fMult)
  1128.       PrintL2();
  1129.     InterpretGeneral();
  1130.     InterpretAspectGeneral();
  1131.     is.fMult = fTrue;
  1132.   }
  1133. #endif
  1134.  
  1135.   /* If we also already have enough information to generate a chart,    */
  1136.   /* then go on and do so, else exit. (So things like "-H -i file" will */
  1137.   /* work, but things like just "-H" will print and exit right away.)   */
  1138.  
  1139.   return is.fMult && !is.fHaveInfo;
  1140. }
  1141.  
  1142. /* charts0.c */
  1143.